export const state = () => ({
  err:1,
  data:{}
})

export const mutations = {
  M_UPDATE_HOME(state,paylod){
    state.err = paylod.err
    state.data = paylod.data
  }
}

export const actions = {
  A_UPDATE_HOME({commit,state},payload){
    //异步处理
    commit('M_UPDATE_HOME',{err:0,data:{title:'home模块 acction 传递数据'}})
  }
}